<?php
//网站的配置文件

return array(
    //公共配置
    'Common' => array(
        'CharSet'       => 'UTF-8',
        'TimeZone'      => 'Asia/Shanghai',
        'UrlHtml'       => '0',
        'AutoFilter'    => '1',
        'HostEnv'       => 'dev',              //框架环境 开发dev/测试test/生产prod
    ),

    'Framework' => array(
        'AppName'				=> 'app',
        'ControllerName'        => 'co',
        'ActionName'            => 'ac',
        'DefaultApp'     		=> 'default',
        'DefaultController'     => 'index',
        'DefaultAction'         => 'index',
        'UrlRewrite'            => '#^/([^/]*)/([^/]*)/([^/]*)#',       //UrlRewrite规则：/Controller/Action?param
																		//fenghao 2013-01-15 更新规则： /appname/Controller/Action?param
    ),

    //网站基本信息配置
    'Options' => array(
        'cn' => array(                  //中文设置
            'Title'         => 'TEST',
            'URL'           => 'http://test.com/',
            'Description'   => 'test',
            'CopyRight'     => 'test',
        ),
    ),

    //数据库配置
    //数据库配置
    'DataBase' => array(
        'driver'        => 'DB_Mysqli',
        'host'          => 'localhost',
        'user'          => 'user',
        'pwd'           => 'passwd',
        'db'            => 'test',
        'charset'       => 'utf8',
    ),

    //HTML模板配置
    'HTMLTemp' => array(
        'temp_dir'       => 'view/template',
        'cache_dir'      => 'view/cache',
        'cache'          => '1',
        'charset'        => 'UTF-8',
        'cache_lifetime' => 172800,    //48小时
    ),

    //Log配置
    'Log' => array(
        'Log_dir'       => 'log',
    ),

    //session配置
    'Sess' => array(
        'session_type'  => MC_Session::TYPE_SYS,
        'expire_time'   => '7200',    //7200秒，2小时
    ),
	
	//上传设置
	'Upload' => array(
		'savepath'    => 'view/uploads/',
	),

	//短信平台设置
	'SMS' => array(
		'url' => "",
		'setup' => array(),
	),

	//任何其他设置

);


